package com.wood.demo.web.controller;

import com.wood.demo.common.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wood
 */
@RestController
public class HelloController {

    @GetMapping({"/","hi"})
    public User hello(){
        User user = new User();
        user.setId(1L);
        user.setAge(20);
        user.setName("name");
        return user;
    }

}
